package com.northpool.operator.bean;


import javax.xml.bind.annotation.*;
import java.io.Serializable;
import java.util.List;
@XmlRootElement(name = "pipeline")
@XmlAccessorType(XmlAccessType.FIELD)
public class PipelineBean implements Serializable {
    @XmlElementWrapper(name = "globalSourceConfig")
    @XmlElement(name = "dataSource")
    List<String> globalSourceConfig;
    @XmlElement(name = "metaConfig")
    MetaConfig metaConfig;
    @Deprecated
    @XmlElement(name = "dataSet")
    DatasetBean dataSet;
    @XmlElement(name = "dataset")
    DatasetBean dataset;
    @XmlElementWrapper(name = "operators")
    @XmlElement(name = "operator")
    List<OperatorBean> operators;
    @XmlElement(name = "parallelism")
    Integer parallelism;

    public List<String> getGlobalSourceConfig() {
        return globalSourceConfig;
    }

    public void setGlobalSourceConfig(List<String> globalSourceConfig) {
        this.globalSourceConfig = globalSourceConfig;
    }

    public DatasetBean getDataSet() {
        return dataSet;
    }

    public void setDataSet(DatasetBean dataSet) {
        this.dataSet = dataSet;
    }
    public DatasetBean getDataset() {
        return dataset;
    }

    public void setDataset(DatasetBean dataset) {
        this.dataset = dataset;
    }

    public List<OperatorBean> getOperators() {
        return operators;
    }

    public void setOperators(List<OperatorBean> operators) {
        this.operators = operators;
    }

    public MetaConfig getMetaConfig() {
        return metaConfig;
    }


    public void setMetaConfig(MetaConfig metaConfig) {
        this.metaConfig = metaConfig;
    }

    public Integer getParallelism() {
        return parallelism;
    }


    public void setParallelism(Integer parallelism) {
        this.parallelism = parallelism;
    }
}
